package com.scs.application.modules.msg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "收信表")
@TableName("msg_inner_inbox")
public class InnerInbox extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "所属消息",
            length = "20",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String innerNoticeId;

    @EntityFieldAnnotation(
            text = "收件人用户编码",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String receiverUserCode;

    @EntityFieldAnnotation(
            text = "收件人用户名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String receiverUserName;

    @EntityFieldAnnotation(
            text = "是否已读（0：否；1：是）",
            length = "",
            not_null = true,
            default_value = "0",
            comment = ""
    )
    private Integer isRead;

    @EntityFieldAnnotation(
            text = "阅读时间",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date gmtRead;

    @EntityFieldAnnotation(
            text = "",
            length = "",
            not_null = true,
            default_value = "0",
            comment = "是否自动已读"
    )
    private Boolean flagAutoRead;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理


    // gmt_modified ,在父类中处理

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remarks;


}
